package com.hu.bgp.framework.clientapi;

import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.DeferredCommand;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PopupPanel;

public class SpinPanel extends PopupPanel
{
	public SpinPanel()
	{
		Label label = new Label("Waiting for other players to join...");
		setWidget(label);
	}

	public void show()
	{
		setPopupPosition(Window.getClientWidth() / 2, Window.getClientHeight() / 2);
		DeferredCommand.addCommand(new Command()
		{
			public void execute()
			{
				SpinPanel.super.show();
			}
		});
	}
}
